package com.javabean;

/*
 *      游戏测试类
 *
 * */
public class GameTest {
    //程序的主入口
    public static void main(String[] args) {
    //空参
        Game g1 = new Game();
        //赋值
        g1.setName("王者荣耀");
        g1.setDeveloper("腾旭");
        g1.setDate("2020-11-11");
        g1.setType("手游");
        g1.setPlayer(10000000);
        g1.setGameScreen("好");

        //调用show方法展示属性
        g1.show();

        System.out.println("----------------");

        //带参
        Game g2 = new Game("消化","下红花","09120102","时候",12210,"流");

        //调用show方法展示属性
        g2.show();
    }
}
